<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>乐玩社团修改密码</title>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery/jquery-3.0.0.min.js"></script>
	<script type="text/javascript">
		$(function(){
			$(".delete").click(function(){
				var href = $(this).attr("href");
				$("form").attr("action", href).submit();			
				return false;
			});
		});
	</script>
</head>
 <body>
  <div align="center">
  	<h1>修改密码</h1><hr>
  	<font color="red">${msg }</font>
  	<form:form action="changePassword.do" method="POST" modelAttribute="changePasswordForm">
  		<table>
  			<tr>
  				<td>修改密码:</td>
  			</tr>
  			<tr>
  				<td><font color="red">${errorMsg }</font></td>
  			</tr>
			<tr>
				<td>原密码：</td>
				<td> <form:password path="oldPassword"/></td>
				<td><form:errors path="oldPassword"></form:errors></td>
			</tr>  			
			<tr>
				<td>密码：</td>
				<td> <form:password path="newPassword1"/></td>
				<td><form:errors path="newPassword1"></form:errors></td>
			</tr>  			
			<tr>
				<td>密码：</td>
				<td> <form:password path="newPassword2"/></td>
				<td><form:errors path="newPassword2"></form:errors></td>
			</tr>  			
			<tr>
  				<td colspan="2"><input type="submit" value="确定修改"/></td>
  			</tr>
  		</table>
  	</form:form>
  </div>
  </body>
</html>